package com.retail.member.client.impl;

import com.retail.core.entity.result.Result;
import com.retail.member.client.ProxyMechanismCategoryClient;
import com.retail.proxy.entity.vo.ProxyMechanismCategoryVo;
import com.retail.proxy.service.ProxyMechanismCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProxyMechanismCategoryClientImpl implements ProxyMechanismCategoryClient {
    
    @Autowired
    private ProxyMechanismCategoryService proxyMechanismCategoryService;

    @Override
    public Result<List<ProxyMechanismCategoryVo>> findMechanismCategoryQtCurrentLevel(Long adminId) {
        List<ProxyMechanismCategoryVo> categoryLists = proxyMechanismCategoryService.findMechanismCategoryQtCurrentLevel(adminId);
        return Result.success(categoryLists);
    }
}
